﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GN.Pay.Core.Runtime.Caching
{
    /// <summary>
    /// 缓存管理
    /// </summary>
    public interface ICacheManager : Abp.Dependency.ISingletonDependency
    {
        /// <summary>
        /// 获取缓存
        /// </summary>
        /// <param name="name">名称</param>
        /// <returns></returns>
        IBaseCache GetCache(string name);

        /// <summary>
        /// 获取缓存
        /// </summary>
        /// <param name="cacheType">类型</param>
        /// <returns></returns>
        IBaseCache GetCache(CacheType cacheType);
    }

    /// <summary>
    /// 缓存类型
    /// </summary>
    public enum CacheType
    {
        /// <summary>
        /// 商家
        /// </summary>
        Merchant,

        /// <summary>
        /// 商家应用
        /// </summary>
        MerchantApp,

        /// <summary>
        /// App 通道
        /// </summary>
        AppChannel,

        /// <summary>
        /// App 通道集合
        /// </summary>
        AppChannels,

        /// <summary>
        /// 付款返回通知
        /// </summary>
        PayReturnNotify,

        /// <summary>
        /// 商户会员绑卡
        /// </summary>
        MerchantMemberBankCardBindToken,

        /// <summary>
        /// 协议支付申请短信验证
        /// </summary>
        ProtocolPaySmsCheck,

        /// <summary>
        /// 短信验证码
        /// </summary>
        SmsCheckCode,

        /// <summary>
        /// 根据唯一编号(交易号)判断第三方是否付款通知
        /// </summary>
        IsPayNotify

    }

    /// <summary>
    /// 短信验证码类型
    /// </summary>
    public enum SmsCheckCodeType
    {
        
    }

}
